package hash_partition

const (
	kMachines           = 5
	virtualBucketCounts = 10
)

var machinesToBuckets = map[int][]int{
	0: {1, 2},
	1: {3, 4},
	2: {5, 6},
	3: {7, 8},
	4: {9, 0},
}

func virtualBuckets(key string) int {
	return String(key) % K
}
